<?php
use WDB\Database;

//initialize

require_once '../../nette.min.php';
Nette\Diagnostics\Debugger::enable();
Nette\Diagnostics\Debugger::$strictMode = TRUE;

require_once '../../loader.php';
WDB\Config::$source = __DIR__. '/config.php';

require 'pujcovna.php';

//run
$schema = WDB\WebUI\Schema::forCurrentSchema();
WDB\WebUI\Table::handleRequestAll();
?><!DOCTYPE html>
<html><head>
<link rel="stylesheet" type="text/css" href="../../public/wdb.css" />
<link rel="stylesheet" type="text/css" href="../../public/twitter-bootstrap/bootstrap.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../public/wdb.js"></script>
<script type="text/javascript" src="../../public/twitter-bootstrap/bootstrap.js"></script>
<script type="text/javascript">
    wdb.config.ajaxUrl = 'ajax.php';
</script>
<meta http-equiv="content-type" content="text/html;charset=utf8">
<title>Virtuální půjčovna - WheelDB Demo</title>
    </head>
    <body>
<?php $schema->show(); ?>
    </body>
</html>